package com.shibaobei.activity.dao;

import com.shibaobei.activity.model.Application;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by Administrator on 2020/5/1 0001.
 */
@Repository
public interface ApplicationMapper {

    int save(Application application);

    List<Application> findByApplicant(@Param("userId") Integer userId, @Param("status") String status);

    Application findById(@Param("applicationId")Integer applicationId);

    void update(Application application);
}
